This allows us to drop the `destroy` signal handler for each
notification in MessageTray.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3173>
Signals: {
'destroy': {param_types: [GObject.TYPE_UINT]},
'notification-added': {param_types: [Notification.$gtype]},
+ 'notification-removed': {param_types: [Notification.$gtype]},
'notification-show': {param_types: [Notification.$gtype]},
},
}, class Source extends MessageList.Source {
return;
this.notifications.splice(index, 1);
+ this.emit('notification-removed', notification);
this.countUpdated();
if (this.notifications.length === 0)